package com.css.openapi.BO;


import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @description: 批次订单BO
 * @Title: PcOrderBO
 * @Author xlw
 * @Package com.invoice.tcc.BO
 * @Date 2024/12/27 14:13
 */
@Data
public class PcBO {

    /**
     * 批次号
     */
    @NotBlank(message = "批次号不能为空")
    @Pattern(regexp = "^\\d{14}\\w+$", message = "批次号格式错误")
    private String pch;

    /**
     * 批量创建订单结果通知回调地址
     */
    private String plcjddjgtzhddz;

    /**
     * 业务类型
     */
    @NotBlank(message = "业务类型不能为空")
    private String ywlx;

    /**
     * 系统支付
     */
    private Integer systemPay;

    /**
     * 定制类型
     */
    private String customiseType;

    @NotEmpty(message = "批次订单不能为空")
    @Size(max = 1000, min = 1, message = "订单数量必须在1-1000条之间")
    private List<PcOrderBO> ddmx;

}
